package com.party.core.service.coupon;

import com.party.common.paging.Page;
import com.party.core.model.coupon.CouponCode;
import com.party.core.model.coupon.CouponCodeOutput;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @author：yifeng
 * @description： 核销码
 * @date：Created in  2017/11/27 上午 10:02
 **/
public interface ICouponCodeService extends IBaseService<CouponCode> {
    List<CouponCodeOutput> webListPage(CouponCode couponCode, Map<String, Object> params, Page page);

    Long getCountByCoupon(String couponId);

    CouponCode randomNotUsed(String giftId);

    CouponCode getUnique(CouponCode couponCode);
}
